package test;

import java.util.Random;

public class GenerateRandomNumber {
    public static void main(String[] args) {
        System.out.println("随机数为："+setTandomNumber());
    }
    private static int setTandomNumber() {
        Random random = new Random();
        return random.nextInt();
    }
}
